package test;

import java.util.Scanner;

public class test2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = sc.nextInt();

        System.out.println(test2.fun(N,M));//输出结果 -2.32E-1
    }

    public static String fun(int N,int M){
        String str = String.format("%E", N);//获取直接格式化结果
        str = str.replace("E-0", "E-");//将E-0N处理为E-N
        //处理结果
        String temp = str.substring(0,str.indexOf(".")+4);//前4位

        String f = String.format("%."+M+"f", Double.parseDouble(temp));
        str = f+str.substring(str.indexOf("E"));
        return str;
    }
}
